package com.kevin.jvm;

/**
 * @author kevin lau
 */
public class OnlineDeployImpl {

    public static void main(String[] args) throws Exception {
        for(;;) {
            String className = "com.kevin.jvm.User";
            Class<?> c2 = new MyClassLoader("/Users/kevin/code/java/spring-boot-projects/spring-boot-concurrent/target/classes").loadClass(className);
            c2.getDeclaredMethod("execute").invoke(c2.newInstance());
            Thread.sleep(1000);
        }
    }
}
